﻿
#region Imported Namespaces

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Serialization;

#endregion

namespace TupleGeo.Emergency.CAP {

  /// <summary>
  /// 
  /// </summary>
  [SerializableAttribute()]
  [DesignerCategoryAttribute("code")]
  [XmlTypeAttribute(TypeName = "alertInfoParameter", AnonymousType = true, Namespace = "urn:oasis:names:tc:emergency:cap:1.2")]
  [DataContractAttribute(Name = "alertInfoParameter", Namespace = "urn:oasis:names:tc:emergency:cap:1.2")]
  [TypeConverterAttribute(typeof(ExpandableObjectConverter))]
  public partial class AlertInfoParameter : EntityBase<AlertInfoParameter> {

    #region Public Properties

    private string _valueName;
       
    /// <summary>
    /// 
    /// </summary>
    [XmlElementAttribute(ElementName = "valueName", Order = 0)]
    [DataMemberAttribute(Name = "valueName", Order = 0)]
    public virtual string ValueName {
      get {
        return this._valueName;
      }
      set {
        if ((this._valueName != null)) {
          if ((_valueName.Equals(value) != true)) {
            this._valueName = value;
            this.OnPropertyChanged("ValueName");
          }
        }
        else {
          this._valueName = value;
          this.OnPropertyChanged("ValueName");
        }
      }
    }

    private string _value;

    /// <summary>
    /// 
    /// </summary>
    [XmlElementAttribute(ElementName = "value", Order = 1)]
    [DataMemberAttribute(Name = "value", Order = 1)]
    public virtual string Value {
      get {
        return this._value;
      }
      set {
        if ((this._value != null)) {
          if ((_value.Equals(value) != true)) {
            this._value = value;
            this.OnPropertyChanged("Value");
          }
        }
        else {
          this._value = value;
          this.OnPropertyChanged("Value");
        }
      }
    }

    #endregion

  }

}
